home *** CD-ROM | disk | FTP | other *** search
- Path: connix.com!news
- From: Scott Hawley <shawley@connix.com>
- Newsgroups: comp.lang.misc,comp.lang.c,comp.lang.pl1,comp.lang.apl
- Subject: Re: GOTO controversy
- Date: Thu, 21 Mar 1996 11:56:47 -0800
- Organization: SHAWLEY SYSTEMS
- Message-ID: <3151B47F.70FD@connix.com>
- References: <314FB5F5.259B@simi.is>
- NNTP-Posting-Host: shawley.connix.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- What to you think? Loops without using loops?
-
- a loop:
-
- for(i=0;i<10;i++)
- {
- stuff
- }
-
- Looping with out a loop
-
- no_loop(0,10);
-
- no_loop(int start, int end)
- {
- if(start != end) {
- stuff
- no_loop(start+1,end);
- }
- }
-
- I haven't tested this but you get the idea.
-